﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Boomerang
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            // do some init here after we draw for the first time
        }

        private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            // if the user is closing the form
            if (e.CloseReason == CloseReason.UserClosing)
            {
                // confirm with the user
                e.Cancel = (MessageBox.Show(this,
                    "Are you sure you want to quit? Changes to the current card will be lost.", "Do you really want to quit?",
                    MessageBoxButtons.YesNo,
                    MessageBoxIcon.Question,
                    MessageBoxDefaultButton.Button2) == DialogResult.No);
            }
        }

        private void showHelp_Click(object sender, EventArgs e)
        {
            // trivial
            MessageBox.Show(this, "There is no help guide/tutorial yet...I guess you're screwed.", "No Help Yet!", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

        private void showConfigure_Click(object sender, EventArgs e)
        {
            SettingsForm frmSettings = new SettingsForm();
            frmSettings.ShowDialog();
        }
    }
}
